package com.pandora.credit.mongo.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @author developer
 */
@Document(collection = "share")
public class MongoShare {

    @Field("_id")
    @JsonProperty("_id")
    private Long id;
    @Field("created_time")
    @JsonProperty("created_time")
    private Date createdTime;
    private MongoActivity.MongoActivityShare sharing;

    public MongoShare(){}

    public MongoShare(Long id, Date createdTime, MongoActivity.MongoActivityShare sharing) {
        this.id = id;
        this.createdTime = createdTime;
        this.sharing = sharing;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public MongoActivity.MongoActivityShare getSharing() {
        return sharing;
    }

    public void setSharing(MongoActivity.MongoActivityShare sharing) {
        this.sharing = sharing;
    }
}
